<div id="form"></div>
<script>
var frm=$("#form").ajajform({
	header: null
});
var grid=frm.ajajform("insertWidget",null,null,{
	type: "grid",
	title: "Tables",
	name: "tables",
	rowClasses: [{
		name:"item",
		columns: [
			{name: "name", label: "Name", width: 300, url: '{{action}}?mode=list&TABLE='}
		]
	}]
});
var rows={{JSON_gridrower("name"):tables}};
for (var i=0;i<rows.length;i++) {
	var row=rows[i];
	grid.ajajform_grid("insertRow",null,row);
}
</script>
